package org.tinygroup.channel.protocol.impl;

import java.util.ArrayList;
import java.util.List;

import org.tinygroup.channel.protocol.ProtocolInterface;
import org.tinygroup.channel.protocol.ProtocolListener;

public abstract class AbstractProtocolInterface<Request, Response> implements
		ProtocolInterface<Request, Response> {
	private String id;
	private List<ProtocolListener<?,?>> listeners = new ArrayList<ProtocolListener<?,?>>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void addProtocolListener(ProtocolListener<?,?> listener) {
		listeners.add(listener);
	}

	public List<ProtocolListener<?, ?>> getListeners() {
		return listeners;
	}

	public void setListeners(List<ProtocolListener<?, ?>> listeners) {
		this.listeners = listeners;
	}

	
	

}
